package com.ccom.api.domain.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description:
 * @author: jjzhang24
 * @date: 2021年12月23日
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class ArticleExcel implements Serializable {
    private static final long serialVersionUID = 1L;

    @ColumnWidth(15)
    @ExcelProperty(value = "userId", index = 1)
    private Long userId;

    @ColumnWidth(15)
    @ExcelProperty(value = "title", index = 2)
    private String title;

    @ColumnWidth(15)
    @ExcelProperty(value = "content", index = 3)
    private String content;

    @ColumnWidth(30)
    @ExcelProperty(value = "createTime", index = 4)
    private Date createTime;
}
